package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = false)
@Data
public class CartDto extends BaseDto {

    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(value = "商品")
    private Integer commodityId;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "用户电话")
    private String phone;

    @ApiModelProperty(value = "每页条数")
    private Integer pageSize;

    @ApiModelProperty(value = "当前页")
    private Integer pageNumber;
}
